<template>
  <footer class="footer_guide border-1px">
    <router-link class="guide_item" to="/msite">
      <span class="item_icon">
        <i class="iconfont icon-waimai"></i>
      </span>
      <span>外卖</span>
    </router-link>
    <router-link class="guide_item" to="/search">
      <span class="item_icon">
        <i class="iconfont icon-search"></i>
      </span>
      <span>搜索</span>
    </router-link>
    <router-link class="guide_item" to="/order">
      <span class="item_icon">
        <i class="iconfont icon-dingdan"></i>
      </span>
      <span>订单</span>
    </router-link>
    <router-link class="guide_item" to="/profile">
      <span class="item_icon">
        <i class="iconfont icon-geren"></i>
      </span>
      <span>我的</span>
    </router-link>
  </footer>
</template>

<script>
export default {
  name: "FooterGuide",
  data() {
    return {
     
    };
  },
};
</script>

<style scoped   lang='stylus'  rel="stylesheet/stylus">
@import   '../../common/stylus/mixins';

  .footer_guide  //footer
    top-border-1px(#e4e4e4)
    position fixed
    z-index 100
    left 0
    right 0
    bottom 0
    background-color #fff
    width 100%
    height 50px
    display flex
    .guide_item
      display flex
      flex 1
      text-align center
      flex-direction column
      align-items center
      margin 5px
      color #999999
      &.on
        color #02a774
      span
        font-size 12px
        margin-top 2px
        margin-bottom 2px
        .iconfont
          font-size 22px
  .content  //每个页面的内容
    >div //决定哪个页面显示
      display none
      &.on
        display block
     
</style>